package day8;

/**
 * @Author juzipi
 * @Date 2021/6/18 9:38
 * @Info
 */
public class ExerTest {

    public static void main(String[] args) {
        ExerTest exerTest = new ExerTest();
        exerTest.method();
        System.out.println(exerTest.method1());
        System.out.println(exerTest.method2(10,20));


    }

    public void method() {
        for (int i = 0; i < 10; i++) {
            for (int j = 0; j < 8; j++) {
                System.out.print("* ");
            }
            System.out.println(" ");
        }
    }

    public int method1(){
        for (int i = 0; i < 10; i++) {
            for (int j = 0; j < 8; j++) {
                System.out.print("* ");
            }
            System.out.println(" ");
        }
        return 10*8;
    }


    public int method2(int m, int n){
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < n; j++) {
                System.out.print("* ");
            }
            System.out.println(" ");
        }
        return m*n;
    }

}
